package org.myspringmvc.web.servlet;

import java.util.Locale;

/**
 * @author 莫磊
 * @date 2025/8/12
 * @description 视图解析接口
 */
public interface ViewResolver {

    /**
     * 将逻辑视图名转换为View
     * @param viewName
     * @param locale
     * @return
     * @throws Exception
     */
    View resolveViewName(String viewName, Locale locale) throws Exception;
}
